All Questions
Tagged with linux-kernelmake
57 questions
1vote
0answers
37views
Cannot compile kernel modules on TrueNAS Scale
I have a Ugreen DXP 6800 Pro and the OS disk died. No actual NAS data was lost but I cannot figure out how to get the OS back to the same state. I was previously able to compile modules and add them ...
0votes
1answer
583views
Issue with make and sudo make in Linux kernel module compilation
I am currently working on a simple Linux kernel module and have encountered an issue related to running make and sudo make commands. Here's the content of my Makefile: obj-m := main.o all: make -...
1vote
1answer
974views
Linux kernel build fails with sed: can't read modules.order: No such file or directory
I am trying to build Linux Kernel for the first time and I am facing below issue while trying to make modules_install sed: can't read modules.order: No such file or directory make: *** [Makefile:1483: ...
1vote
1answer
345views
make menuconfig hangs when trying to compile linux kernel 6.1.44
I am trying to compile linux kernel 6.1 on Debian 12. I have installed the build environment: apt-get install build-essential bc libncurses-dev libssl-dev libelf-dev bison flex Now when I run make ...
0votes
1answer
160views
Unable to compile uvcvideo driver
I've been following the LFD103 course titled "A BEGINNER'S GUIDE TO LINUX KERNEL DEVELOPMENT". In the section "Writing Your First Kernel Patch", we make changes to the 'uvcvideo' ...
2votes
2answers
1kviews
when crosscompiling this source why do I receive "No rule to make target" error on one host but not the other
I have the following linux kernel source repo cloned to a couple different hosts (my local machine and a Github Actions runner) https://gitlab.conclusive.pl/devices/linux/-/tree/master I'm using the ...
2votes
1answer
1kviews
Why is the Image file a PE executable
I've been trying to compile a linux kernel on my own machine with the source linux-6.0-rc5, which is the latest. Everything goes well yet something haunts me. When I get the Image file under arch/...
-1votes
1answer
767views
Error trying to compile kernel 5.15
I am trying to compile the linux kernel 5.15.64 but it fails. I have the config and use make -j4 && sudo make modules_install -j4 but this is the error I get. make[1]: *** [kernel/Makefile:160:...
2votes
1answer
4kviews
Error while trying to compile headers in Ubuntu Jammy Jellyfish
I am currently trying to compile the headers in Jammy Jellyfish, and I am running into the following error: /usr/src/linux-headers-5.15.0-25-generic$ sudo make SYNC include/config/auto.conf.cmd ...
1vote
2answers
5kviews
FAILED: load BTF from vmlinux : No such file or directory
While trying to build kernel (4.15) with support Ftrace and debug info, I am getting the following error: FAILED: load BTF from vmlinux: No such file or directory Makefile:1160: recipe ...
1vote
1answer
2kviews
Compile kernel module targeting different kernel version
I have a simple "hello world" Linux kernel module that I would like to compile for a different host. My host is on a 5.x kernel version and the target is on 4.x. I do not want to update the ...
0votes
1answer
980views
Why does dkms install fail with "incompatible pointer type" on Debian but not Ubuntu?
My system is an Intel nuc (NUC6CAYH), running Debian 11. I'm trying to install a kernel module to interact with the programmable LEDs via acpi. I have successfully installed this module on an ...
0votes
1answer
3kviews
Preparing the installer to update Linux kernel in a VirtualBox causes errors connected with CONFIG_X86_X32 and modules.order
I'm trying to update my Linux kernel on VirtualBox from version 5.11.0 to 5.14.21. My distribution is Ubuntu 20.04. I also added a new syscall to the kernel but it seems to be ok. $ sudo make ...
0votes
1answer
270views
Creating Kernel Module
I am currently reading a book on Linux Kernel Module Programming - https://tldp.org/LDP/lkmpg/2.4/lkmpg.pdf and I am running into a compilation error when running make. /* hello.c − The simplest ...
0votes
1answer
517views
Creating LKM using Makefile
As of lately, I have decided to begin learning about OS kernels and came across a few resources to aid in my learning process. Following the tutorial, I setup an Loadable Kernel Module and Makefile, ...